package com.tian.common;

/**
 * @author zhumengping
 * @title: AuthResultCode
 * @projectName zhump-cloud
 * @date 2023/8/9 9:46
 */
public enum AuthResultCode {
    CLIENT_AUTHENTICATION_FAILED(1001,"客户端认证失败"),
    USERNAME_OR_PASSWORD_ERROR(1002,"用户名或密码错误"),
    UNSUPPORTED_GRANT_TYPE(1003,"不支持的认证模式"),
    INVALID_TOKEN(1004,"无效过期token"),
    NO_PERMISSION(403,"无访问权限"),
    UNAUTHORIZED(401,"系统错误")
    ;


    private int code;

    private String msg;

    AuthResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
